package com.dzt.androidframework.database.taskdetail;

import com.dzt.androidframework.mvp.BasePresenter;
import com.dzt.androidframework.mvp.BaseView;

/**
 * Created by M02323 on 2017/6/12.
 */

public class TaskDetailContract {
	interface View extends BaseView<Presenter> {
		void setLoadingIndicator(boolean active);
		void reLoadTask();
		void showMissingTask();
		void hideTitle();
		void showTitle(String title);
		void hideDescription();
		void showDescription(String description);
		void showCompletionStatus(boolean complete);
		void showEditTask(String taskId);
		void showTaskDeleted();
		void showTaskMarkedComplete();
		void showTaskMarkedActive();
		boolean isActive();
	}

	interface Presenter extends BasePresenter {
		void result(int requestCode, int resultCode);
		void editTask();
		void deleteTask();
		void completeTask();
		void activateTask();
	}
}
